package com.feicheng.persistence.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.CardType;
import com.feicheng.persistence.mapper.CardTypeMapper;
import com.feicheng.persistence.model.CardTypeMain;
import com.feicheng.persistence.service.ICardTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Service
public class CardTypeServiceImpl extends ServiceImpl<CardTypeMapper, CardType> implements ICardTypeService {

    @Override
    public Page<CardTypeMain> getCardTypesByPage(Page<CardTypeMain> cardTypeMainPage, QueryWrapper<CardTypeMain> queryWrapper) {
        return this.getBaseMapper().getCardTypesByPage(cardTypeMainPage,queryWrapper);
    }

    @Override
    public List<CardTypeMain> getCardTypes(QueryWrapper<CardTypeMain> wrapper) {
        return this.getBaseMapper().getCardTypes(wrapper);
    }
}
